﻿<Window x:Class="Rotempco.Core.Updater.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Rotempco Core Updater" Height="600" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50*" />
            <RowDefinition Height="31*" />
            <RowDefinition Height="224*" />
            <RowDefinition Height="212*" />
            <RowDefinition Height="44*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="190*" />
            <ColumnDefinition Width="149*" />
            <ColumnDefinition Width="91*" />
            <ColumnDefinition Width="120*" />
            <ColumnDefinition Width="123*" />
        </Grid.ColumnDefinitions>        
        
        <Label Content="Project Core project file" Height="28" HorizontalAlignment="Left" Margin="10,1,0,0" Name="label1" VerticalAlignment="Top" Grid.Row="0" />
        <TextBox Grid.ColumnSpan="3" Height="23" HorizontalAlignment="Left" Name="textBox_ProjectCoreFile" VerticalAlignment="Top" Width="390" Grid.Row="0" Grid.Column="1" Margin="1,1,0,0" />
        <Button Content="Browse" Grid.Column="4" Height="23" HorizontalAlignment="Right" Margin="0,0,67,0" Name="button_BrowseToProjectCoreFile" VerticalAlignment="Top" Width="75" Grid.Row="0" Click="button_BrowseToProjectCoreFile_Click" />

        <Label Content="Original Rotempco Core project file" Height="28" HorizontalAlignment="Left" Margin="10,0,0,0" Name="label2" VerticalAlignment="Top" Grid.Row="1"/>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="0,0,0,0" Name="textBox_RotempcoCoreProjectFile" VerticalAlignment="Top" Width="390" Grid.ColumnSpan="3" Grid.Column="1" Grid.Row="1"/>
        <Button Content="Browse" Height="23" HorizontalAlignment="Right" Margin="0,0,67,0" Name="button_BrowseForRotempcoCoreProjectFile" VerticalAlignment="Top" Width="75" Grid.Column="4" Grid.Row="1" Click="button_BrowseForRotempcoCoreProjectFile_Click" />
        
        <Label Content="Folders to use" Height="28" HorizontalAlignment="Left" Margin="10,1,0,0" Name="label1z" VerticalAlignment="Top" Grid.Row="2" />
        <ListBox Grid.Column="1" Grid.Row="2" Height="223" HorizontalAlignment="Left" Margin="2,1,0,0" Name="listBox1" VerticalAlignment="Top" Width="401" Grid.ColumnSpan="3">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <CheckBox Content="{Binding Name}" IsEnabled="{Binding SelectionAvailable}" IsChecked="{Binding Selected}"/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button Content="Update Core" Grid.Column="4" Grid.Row="4" Height="23" HorizontalAlignment="Left"  Name="button1" VerticalAlignment="Top" Width="98" Margin="32,9,0,0" Click="button1_Click" />
        <Label Content="Safe list" Height="28" HorizontalAlignment="Left" Name="label3" VerticalAlignment="Top" Grid.Row="3" Margin="12,0,0,0" />
        <ListBox Grid.Column="1" Grid.Row="3" Height="212" HorizontalAlignment="Left" Margin="3,0,0,0" Name="listBox_Safelist" VerticalAlignment="Top" Width="400" Grid.ColumnSpan="3" />        
        <Button Content="Add" Height="23" HorizontalAlignment="Left" Margin="0,5,0,0" Name="button_Add" VerticalAlignment="Top" Width="75" Grid.Column="4" Grid.Row="3" Click="button_Add_Click" />
        <Button Content="Remove" Grid.Column="4" Grid.Row="3" Height="23" HorizontalAlignment="Left" Margin="0,189,0,0" Name="button_Remove" VerticalAlignment="Top" Width="75" Click="button_Remove_Click" />
    </Grid>
</Window>
